package org.example.auth.mapper;

import com.example.common.annotation.AutoFill;
import com.example.model.emp.pojo.Employee;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface EmpMapper {


    /**
     * 登录获取员工信息
     * @param employee
     * @return
     */
    @Select("select * from sm.employee where username=#{username} and password=#{password}")
    Employee getByUsernameAndPassword(Employee employee);

}

